#ifndef LAN2BUTTON_H
#define LAN2BUTTON_H

#include <QPushButton>
#include <QObject>
#include "lan2core.h"
LAN2STA
class Lan2CalButton : public QPushButton
{
public:
    Lan2CalButton(QWidget *parent =nullptr,QString text="", int width=60,int height=30,QString bgcolor="#ffffff",QString hbgcolor="#f0f0f0"):QPushButton(parent){
        this->setFixedSize(width,height);
        this->setStyleSheet("QPushButton{background:"+bgcolor+";border:1px solid #e7e7e7;}QPushButton:hover{background:"+hbgcolor+";}");
        this->setText(text);
    }
};

LAN2END
#endif // LAN2BUTTON_H
